import datetime

today = datetime.datetime.today()

print(today)
print(today.strftime("%Y-%m-%d %H:%M:%S"))
# 半个小时之前的时间
today = today - datetime.timedelta(minutes=30)
print(today.strftime("%Y-%m-%d %H:%M:%S"))

print("我是%s我几年%d岁" % ("张三", 20))
print("我是{}我几年{}岁，我的手机号是{}".format("高质量纸人", 33, "1110"))
